/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by:   焦质晔
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 预存金管理首页查询
export const getList = params => axios.get(`${SERVER.MEMBERS_CLUB}/depositmanage/queryDepositmanageInfo`, { params });

// 存预存金生成订单
export const getBill = params => axios.post(`${SERVER.MEMBERS_CLUB}/depositmanage/saveDeposit`, params);

// 存入预存金保存子条目
export const SaveBill = params => axios.post(`${SERVER.MEMBERS_CLUB}/depositmanage/saveDepositItem`, params);

// 使用明细/存退明细
export const BillList = params => axios.get(`${SERVER.MEMBERS_CLUB}/depositmanage/queryDepositmanageDetails`, { params });

// 存入明细子条目
export const SaveBillList = params => axios.get(`${SERVER.MEMBERS_CLUB}/depositmanage/queryDepositmanageSaveDetails`, { params });

// 退预存金
export const ReturnBill = params => axios.post(`${SERVER.MEMBERS_CLUB}/depositmanage/returnDeposit`, params);

// 使用预存金
export const UseBill = params => axios.post(`${SERVER.MEMBERS_CLUB}/depositmanage/useDeposit`, params);

// 调用下发
export const getCardInfo = params => axios.get(`${SERVER.MEMBERS_CLUB}/depositmanage/downloadDeposit`, { params });
